﻿

namespace ModulesToolkit.DataContracts.Membership
{
    public class GroupDtoInsertIdentity
    {
        #region Properties

        public System.String Name { set; get; }

        public System.String Description { set; get; }

        public System.String CreatedBy { set; get; }

        public System.DateTime CreationDate { set; get; }

        public System.Boolean IsEnabled { set; get; }

        public string Roles { get; set; }

        #endregion Properties

        public static implicit operator GroupDtoInsertIdentity(GroupDto entity)
        {
            return new GroupDtoInsertIdentity()
                       {
                           CreatedBy = entity.CreatedBy,
                           CreationDate = entity.CreationDate,
                           Description = entity.Description,
                           IsEnabled = entity.IsEnabled,
                           Name = entity.Name
                       };
        }
    }
}
